package com.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.pojo.BlogTag;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-06-14 14:17
 * FileName: BlogTag
 * Description:博客标签数据层
 */
@Repository(value ="BlogTagMapper")
@Mapper
public interface BlogTagMapper extends BaseMapper<BlogTagMapper> {

    /***
     * 插入博客-标签识别
     * @param blogTag
     * @return
     */
    int insertBlogTag(BlogTag blogTag);

    /***
     * 删除博客标签标识
     * @param blogId
     * @return
     */
    int delByBlogId(Long blogId);
}
